package com.epfresh.api.entity;

import com.epfresh.api.utils.VerificationUtils;
import com.google.gson.Gson;

public class DocFile {
    private String InfoChecking = "您已经提交信息，正在审核中";
    private String offShelf = "已下架";
    private String noOrders = "暂无订单";
    private String canceled = "已取消";
    private String isDelPriceOffShelf = "删除所有价格，商品将进入下架状态，是否删除？";
    private String onShelf = "已上架";
    private String storeVertifyFirst = "您还没有开店，开店审核通过后可发布商品";
    private String allDocument_version = "1";
    private String inspectCodeWrong = "交货码验证失败，请重新输入";
    private String inspectCodeRight = "交货码校验成功";
    private String latestVersion = "已是最新版本";
    private String bulkCargoDefault = "散货默认数量为1，价格设置中填写起订量。";
    private String paid = "已支付";
    private String confirmed = "确认收货成功";
    private String noMarketChoice = "当前城市没有市场选择";
    private String beenSubmitted = "已提交";
    private String updated = "已修改";
    private String lastOne = "已经是最后一条了";
    private String focused = "已关注";
    private String shopFirst = "还未开店，请先去开店";
    private String servicePhone = "如需修改，请联系客服：400-0588198";
    private String refused = "已拒收";
    private String infoVerifyPassed = "已认证";
    private String isAgreeRefused = "同意拒收有可能产生退款，是否同意？";
    private String switchNet = "您已切换到手机移动网络环境";
    private String shared = "已分享";
    private String cerficateFirst = "请先申请实名信息和店铺认证";
    private String outed = "已登出";
    private String verifyCode = "验证码发送请求已收到";
    private String payConfirm = "您尚未完成进货单支付，请确认是否继续支付或稍后再支付？";
    private String waiting = "请稍等…";
    private String saved = "已保存";
    private String checkStoreFrist = "您还没有开店，开店审核通过后可查看";
    private String saleCityService = "如需添加销售城市，请联系客服";
    private String netWeak = "网络不给力，换个地方试试！";
    private String choicePubCity = "定位区域暂未开通服务，请选择已开通区域";
    private String deleted = "已删除";
    private String cleared = "已清理";
    private String copyed = "已复制";
    private String noAgreeWaitService = "批发商不同意拒收，请等待客服处理结果";
    private String hasSend = "已发货";
    private String tksScore = "感谢您的评分";
    private String regSuccess = "注册成功";
    private String noStatementHistory = "暂无结算历史";
    private String cameraWrong = "相机不可用";
    private String firstOne = "已经是第一条了";
    private String coding = "正在开发银联支付";
    private String prepareSure = "备货完成";
    public DocFile() {

    }

    public void init(){


    }

    public String getPrepareSure() {
        return prepareSure;
    }

    public void setPrepareSure(String prepareSure) {
        this.prepareSure = prepareSure;
    }

    public String getCheckStoreFrist() {
        return checkStoreFrist;
    }

    public void setCheckStoreFrist(String checkStoreFrist) {
        this.checkStoreFrist = checkStoreFrist;
    }

    public String getInfoChecking() {
        return InfoChecking;
    }

    public void setInfoChecking(String infoChecking) {
        InfoChecking = infoChecking;
    }

    public String getCanceled() {
        return canceled;
    }

    public void setCanceled(String canceled) {
        this.canceled = canceled;
    }

    public String getOffShelf() {
        return offShelf;
    }

    public void setOffShelf(String offShelf) {
        this.offShelf = offShelf;
    }

    public String getNoOrders() {
        return noOrders;
    }

    public void setNoOrders(String noOrders) {
        this.noOrders = noOrders;
    }

    public String getIsDelPriceOffShelf() {
        return isDelPriceOffShelf;
    }

    public void setIsDelPriceOffShelf(String isDelPriceOffShelf) {
        this.isDelPriceOffShelf = isDelPriceOffShelf;
    }

    public String getStoreVertifyFirst() {
        return storeVertifyFirst;
    }

    public void setStoreVertifyFirst(String storeVertifyFirst) {
        this.storeVertifyFirst = storeVertifyFirst;
    }

    public String getOnShelf() {
        return onShelf;
    }

    public void setOnShelf(String onShelf) {
        this.onShelf = onShelf;
    }

    public String getAllDocument_version() {
        return allDocument_version;
    }

    public void setAllDocument_version(String allDocument_version) {
        this.allDocument_version = allDocument_version;
    }

    public String getInspectCodeWrong() {
        return inspectCodeWrong;
    }

    public void setInspectCodeWrong(String inspectCodeWrong) {
        this.inspectCodeWrong = inspectCodeWrong;
    }

    public String getInspectCodeRight() {
        return inspectCodeRight;
    }

    public void setInspectCodeRight(String inspectCodeRight) {
        this.inspectCodeRight = inspectCodeRight;
    }

    public String getLatestVersion() {
        return latestVersion;
    }

    public void setLatestVersion(String latestVersion) {
        this.latestVersion = latestVersion;
    }

    public String getBulkCargoDefault() {
        return bulkCargoDefault;
    }

    public void setBulkCargoDefault(String bulkCargoDefault) {
        this.bulkCargoDefault = bulkCargoDefault;
    }

    public String getBeenSubmitted() {
        return beenSubmitted;
    }

    public void setBeenSubmitted(String beenSubmitted) {
        this.beenSubmitted = beenSubmitted;
    }

    public String getNoMarketChoice() {
        return noMarketChoice;
    }

    public void setNoMarketChoice(String noMarketChoice) {
        this.noMarketChoice = noMarketChoice;
    }

    public String getConfirmed() {
        return confirmed;
    }

    public void setConfirmed(String confirmed) {
        this.confirmed = confirmed;
    }

    public String getUpdated() {
        return updated;
    }

    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public String getLastOne() {
        return lastOne;
    }

    public void setLastOne(String lastOne) {
        this.lastOne = lastOne;
    }

    public String getShopFirst() {
        return shopFirst;
    }

    public void setShopFirst(String shopFirst) {
        this.shopFirst = shopFirst;
    }

    public String getFocused() {
        return focused;
    }

    public void setFocused(String focused) {
        this.focused = focused;
    }

    public String getServicePhone() {
        return servicePhone;
    }

    public void setServicePhone(String servicePhone) {
        this.servicePhone = servicePhone;
    }

    public String getRefused() {
        return refused;
    }

    public void setRefused(String refused) {
        this.refused = refused;
    }

    public String getIsAgreeRefused() {
        return isAgreeRefused;
    }

    public void setIsAgreeRefused(String isAgreeRefused) {
        this.isAgreeRefused = isAgreeRefused;
    }

    public String getSwitchNet() {
        return switchNet;
    }

    public void setSwitchNet(String switchNet) {
        this.switchNet = switchNet;
    }

    public String getShared() {
        return shared;
    }

    public void setShared(String shared) {
        this.shared = shared;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public String getWaiting() {
        return waiting;
    }

    public void setWaiting(String waiting) {
        this.waiting = waiting;
    }

    public String getSaved() {
        return saved;
    }

    public void setSaved(String saved) {
        this.saved = saved;
    }

    public String getSaleCityService() {
        return saleCityService;
    }

    public void setSaleCityService(String saleCityService) {
        this.saleCityService = saleCityService;
    }

    public String getChoicePubCity() {
        return choicePubCity;
    }

    public void setChoicePubCity(String choicePubCity) {
        this.choicePubCity = choicePubCity;
    }

    public String getNetWeak() {
        return netWeak;
    }

    public void setNetWeak(String netWeak) {
        this.netWeak = netWeak;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getCleared() {
        return cleared;
    }

    public void setCleared(String cleared) {
        this.cleared = cleared;
    }

    public String getCopyed() {
        return copyed;
    }

    public void setCopyed(String copyed) {
        this.copyed = copyed;
    }

    public String getNoAgreeWaitService() {
        return noAgreeWaitService;
    }

    public void setNoAgreeWaitService(String noAgreeWaitService) {
        this.noAgreeWaitService = noAgreeWaitService;
    }

    public String getTksScore() {
        return tksScore;
    }

    public void setTksScore(String tksScore) {
        this.tksScore = tksScore;
    }

    public String getHasSend() {
        return hasSend;
    }

    public void setHasSend(String hasSend) {
        this.hasSend = hasSend;
    }

    public String getRegSuccess() {
        return regSuccess;
    }

    public void setRegSuccess(String regSuccess) {
        this.regSuccess = regSuccess;
    }

    public String getCoding() {
        return coding;
    }

    public void setCoding(String coding) {
        this.coding = coding;
    }

    public String getFirstOne() {
        return firstOne;
    }

    public void setFirstOne(String firstOne) {
        this.firstOne = firstOne;
    }

    public String getCameraWrong() {
        return cameraWrong;
    }

    public void setCameraWrong(String cameraWrong) {
        this.cameraWrong = cameraWrong;
    }

    public String getNoStatementHistory() {
        return noStatementHistory;
    }

    public void setNoStatementHistory(String noStatementHistory) {
        this.noStatementHistory = noStatementHistory;
    }

    public String getPaid() {
        return paid;
    }

    public void setPaid(String paid) {
        this.paid = paid;
    }

    public String getInfoVerifyPassed() {
        return infoVerifyPassed;
    }

    public void setInfoVerifyPassed(String infoVerifyPassed) {
        this.infoVerifyPassed = infoVerifyPassed;
    }

    public String getCerficateFirst() {
        return cerficateFirst;
    }

    public void setCerficateFirst(String cerficateFirst) {
        this.cerficateFirst = cerficateFirst;
    }

    public String getOuted() {
        return outed;
    }

    public void setOuted(String outed) {
        this.outed = outed;
    }

    public String getPayConfirm() {
        return payConfirm;
    }

    public void setPayConfirm(String payConfirm) {
        this.payConfirm = payConfirm;
    }

    //文案版本号
    public long getAllDocumentVersion(){
        long version = 0;
        if (VerificationUtils.isNumeric(allDocument_version)){
            version = Long.valueOf(allDocument_version);
        }
        return version;
    }

    public boolean isNeedUpdate(String serverVersion){
        if (VerificationUtils.isNumeric(serverVersion)){
            if (Long.valueOf(serverVersion) > getAllDocumentVersion()){
                return true;
            }
        }else if (allDocument_version != null && !allDocument_version.equals(serverVersion)){
            return true;
        }

        return false;
    }

    public String encrypt() {
        //可以再加密
        return new Gson().toJson(this);
    }

    public static DocFile decrypt(String encryptStr) {
        //可以增加解
        try{
            return new Gson().fromJson(encryptStr, DocFile.class);
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }

}
